package com.qqt.csr.workbench.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.idempotent.RequestKeyParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "MovingSkillSetReqVO", description = "移动技能组")
public class MovingSkillSetReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -8625779427054200829L;

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "主键id不能为空")
    @RequestKeyParam
    private Long id;

    @Schema(description = "上移或下移：0 上移；1 下移", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "上移或下移不能为空")
    @Min(value=0,message = "上移或下移必须为0或1")
    @Max(value=1,message = "上移或下移必须为0或1")
    private Integer type;
}
